package com.itheima.homework9;

import java.io.*;

public class Demo9_CopyFile {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(
                new FileInputStream("F:\\壁纸\\Iverson.jpeg"));
        BufferedOutputStream bos = new BufferedOutputStream(
                new FileOutputStream("d12_zuoye_File&IO/Iverson.jpeg"));
        byte[] bytes = new byte[8192];
        int len;
        while ((len=bis.read(bytes))!=-1){
            bos.write(bytes,0,len);
        }
        bis.close();
        bos.close();

    }
}
